package cn.mjnxin.charge.model.entity;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
/**
 * demo_file_list:文件管理文件表
 * create by :clg  2023/8/29
 *
 * @mbg.generated
 */
public class DemoFileList implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="主键")
    private Long id;

    /**
     * 文件名称
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="文件名称")
    private String fileName;

    /**
     * 文件路径
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="文件路径")
    private String filePath;

    /**
     * 文件后缀名
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="文件后缀名")
    private String fileShuffix;

    /**
     * 文件类型
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="文件类型")
    private String contentType;

    /**
     * 所属模块
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="所属模块")
    private String model;

    /**
     * 所属的文件夹编号
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="所属的文件夹编号")
    private Long pathId;

    /**
     * 文件大小
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="文件大小")
    private Long size;

    /**
     * 关联上传的用户
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="关联上传的用户")
    private Integer userId;

    /**
     * 是否丢到回收站（0：否，1：是）
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="是否丢到回收站（0：否，1：是）")
    private Integer fileIsTrash;

    /**
     * 是否是共享文件（0：否，1：是）
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="是否是共享文件（0：否，1：是）")
    private Integer fileIsShare;

    /**
     * 修改的时间
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="修改的时间")
    private Date uploadTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName == null ? null : fileName.trim();
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath == null ? null : filePath.trim();
    }

    public String getFileShuffix() {
        return fileShuffix;
    }

    public void setFileShuffix(String fileShuffix) {
        this.fileShuffix = fileShuffix == null ? null : fileShuffix.trim();
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType == null ? null : contentType.trim();
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model == null ? null : model.trim();
    }

    public Long getPathId() {
        return pathId;
    }

    public void setPathId(Long pathId) {
        this.pathId = pathId;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getFileIsTrash() {
        return fileIsTrash;
    }

    public void setFileIsTrash(Integer fileIsTrash) {
        this.fileIsTrash = fileIsTrash;
    }

    public Integer getFileIsShare() {
        return fileIsShare;
    }

    public void setFileIsShare(Integer fileIsShare) {
        this.fileIsShare = fileIsShare;
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", fileName=").append(fileName);
        sb.append(", filePath=").append(filePath);
        sb.append(", fileShuffix=").append(fileShuffix);
        sb.append(", contentType=").append(contentType);
        sb.append(", model=").append(model);
        sb.append(", pathId=").append(pathId);
        sb.append(", size=").append(size);
        sb.append(", userId=").append(userId);
        sb.append(", fileIsTrash=").append(fileIsTrash);
        sb.append(", fileIsShare=").append(fileIsShare);
        sb.append(", uploadTime=").append(uploadTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DemoFileList other = (DemoFileList) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFileName() == null ? other.getFileName() == null : this.getFileName().equals(other.getFileName()))
            && (this.getFilePath() == null ? other.getFilePath() == null : this.getFilePath().equals(other.getFilePath()))
            && (this.getFileShuffix() == null ? other.getFileShuffix() == null : this.getFileShuffix().equals(other.getFileShuffix()))
            && (this.getContentType() == null ? other.getContentType() == null : this.getContentType().equals(other.getContentType()))
            && (this.getModel() == null ? other.getModel() == null : this.getModel().equals(other.getModel()))
            && (this.getPathId() == null ? other.getPathId() == null : this.getPathId().equals(other.getPathId()))
            && (this.getSize() == null ? other.getSize() == null : this.getSize().equals(other.getSize()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getFileIsTrash() == null ? other.getFileIsTrash() == null : this.getFileIsTrash().equals(other.getFileIsTrash()))
            && (this.getFileIsShare() == null ? other.getFileIsShare() == null : this.getFileIsShare().equals(other.getFileIsShare()))
            && (this.getUploadTime() == null ? other.getUploadTime() == null : this.getUploadTime().equals(other.getUploadTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFileName() == null) ? 0 : getFileName().hashCode());
        result = prime * result + ((getFilePath() == null) ? 0 : getFilePath().hashCode());
        result = prime * result + ((getFileShuffix() == null) ? 0 : getFileShuffix().hashCode());
        result = prime * result + ((getContentType() == null) ? 0 : getContentType().hashCode());
        result = prime * result + ((getModel() == null) ? 0 : getModel().hashCode());
        result = prime * result + ((getPathId() == null) ? 0 : getPathId().hashCode());
        result = prime * result + ((getSize() == null) ? 0 : getSize().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getFileIsTrash() == null) ? 0 : getFileIsTrash().hashCode());
        result = prime * result + ((getFileIsShare() == null) ? 0 : getFileIsShare().hashCode());
        result = prime * result + ((getUploadTime() == null) ? 0 : getUploadTime().hashCode());
        return result;
    }
}